if (CMAKE_HOST_WIN32)

	SET(LIBFDK-AAC_DIR ${THIRD_PARTY}/windows/x86/libfdk-aac)
	if(CMAKE_SIZEOF_VOID_P EQUAL 8)
		SET(LIBFDK-AAC_DIR ${THIRD_PARTY}/windows/x64/libfdk-aac)
	endif()

	SET(LIBFDK-AAC_INCLUDE_DIR ${LIBFDK-AAC_DIR}/include)
	SET(LIBFDK-AAC_LIB_DIR  ${LIBFDK-AAC_DIR}/lib)
	SET(LIBFDK-AAC_LIBS libGbt28181Kit)
ELSE()

	IF(CMAKE_TOOLCHAIN_FILE)
		IF (CMAKE_SYSTEM_NAME STREQUAL Android)

			IF (ANDROID_ABI STREQUAL armeabi-v7a)
				SET(LIBFDK-AAC_DIR ${THIRD_PARTY}/android/libfdk-aac/armeabi-v7a)
			ELSEIF (ANDROID_ABI STREQUAL arm64-v8a)
				SET(LIBFDK-AAC_DIR ${THIRD_PARTY}/android/libfdk-aac/arm64-v8a)
			ENDIF()

			SET(LIBFDK-AAC_INCLUDE_DIR ${LIBFDK-AAC_DIR}/include)
			SET(LIBFDK-AAC_LIB_DIR ${LIBFDK-AAC_DIR}/lib)

		ELSEIF (CMAKE_C_COMPILER MATCHES "hisiv300")
			SET(LIBFDK-AAC_DIR ${THIRD_PARTY}/hisiv300/libfdk-aac)
			SET(LIBFDK-AAC_INCLUDE_DIR ${LIBFDK-AAC_DIR}/include)
			SET(LIBFDK-AAC_LIB_DIR ${LIBFDK-AAC_DIR}/lib)
		ENDIF()

		IF (CMAKE_C_COMPILER MATCHES "hisiv400")
			SET(LIBFDK-AAC_DIR ${THIRD_PARTY}/hisiv400/libfdk-aac)
			SET(LIBFDK-AAC_INCLUDE_DIR ${LIBFDK-AAC_DIR}/include)
			SET(LIBFDK-AAC_LIB_DIR ${LIBFDK-AAC_DIR}/lib)
		ENDIF()

		IF (CMAKE_C_COMPILER MATCHES "hisiv500")
			SET(LIBFDK-AAC_DIR ${THIRD_PARTY}/hisiv500/terminal-sdgb28181kit)
			SET(LIBFDK-AAC_INCLUDE_DIR ${LIBFDK-AAC_DIR}/include)
			SET(LIBFDK-AAC_LIB_DIR ${LIBFDK-AAC_DIR}/lib)
		ENDIF()

		IF (CMAKE_C_COMPILER MATCHES "hisiv600")
			SET(LIBFDK-AAC_DIR ${THIRD_PARTY}/hisiv600/libfdk-aac)
			SET(LIBFDK-AAC_INCLUDE_DIR ${LIBFDK-AAC_DIR}/include)
			SET(LIBFDK-AAC_LIB_DIR ${LIBFDK-AAC_DIR}/lib)
		ENDIF()

		IF (CMAKE_C_COMPILER MATCHES "himix100")
			SET(LIBFDK-AAC_DIR ${THIRD_PARTY}/himix100/libfdk-aac)
			SET(LIBFDK-AAC_INCLUDE_DIR ${LIBFDK-AAC_DIR}/include)
			SET(LIBFDK-AAC_LIB_DIR ${LIBFDK-AAC_DIR}/lib)
		ENDIF()

		IF (CMAKE_C_COMPILER MATCHES "himix200")
			SET(LIBFDK-AAC_DIR ${THIRD_PARTY}/himix200/libfdk-aac)
			SET(LIBFDK-AAC_INCLUDE_DIR ${LIBFDK-AAC_DIR}/include)
			SET(LIBFDK-AAC_LIB_DIR ${LIBFDK-AAC_DIR}/lib)
		ENDIF()

		IF (CMAKE_C_COMPILER MATCHES "gcc")
			SET(LIBFDK-AAC_DIR ${THIRD_PARTY}/gcc/libfdk-aac)
			SET(LIBFDK-AAC_INCLUDE_DIR ${LIBFDK-AAC_DIR}/include)
			SET(LIBFDK-AAC_LIB_DIR ${LIBFDK-AAC_DIR}/lib)
		ENDIF()

		SET(LIBFDK-AAC_LIBS ${LIBFDK-AAC_LIB_DIR}/libfdk-aac.a)
	ELSE()
		SET(LIBFDK-AAC_DIR ${THIRD_PARTY}/gcc/libfdk-aac)
		SET(LIBFDK-AAC_INCLUDE_DIR ${LIBFDK-AAC_DIR}/include)
		SET(LIBFDK-AAC_LIB_DIR ${LIBFDK-AAC_DIR}/lib)
		SET(LIBFDK-AAC_LIBS ${LIBFDK-AAC_LIB_DIR}/libfdk-aac.a)
	ENDIF()	
ENDIF()
